<article class="node node-blog node-teaser node-odd published with-comments node-teaser clearfix" id="node-41" style="margin-bottom: 0;">
    <header class="node-header">
        <h3><a href="<?php echo site_url('site/post/detalhes/' .$item->get_id_post()); ?>"><?php echo $item->get_titulo(); ?></a></h3>
    </header>

    <div class="node-content">
        <div class="node-meta">
            <div class="extra">
                <time datetime="" pubdate="<?php echo $item->get_data_alteracao()->format('d/m/Y'); ?>"><?php printf("Postado em %s", $item->get_data_alteracao()->format('d/m/Y')); ?></time>
                <span style="border-right: 0;" class="author"><span class="username"><?php echo $item->get_usuario()->get_nome(); ?></span></span>
                <!--<a class="comment_count" href="http://livedemo00.template-help.com/drupal_48487/?q=node/41#comments">2 comentário(s)</a>-->
            </div>
        </div>

        <div class="content">
            <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>
                            <?php 
                            $conteudo = $item->get_conteudo();
                            
                            $document = phpQuery::newDocumentHTML($conteudo);
                            $p = pq('body > *');
                            $count = 0;
                            foreach($p as $tag){
                                $html = pq($tag);
                                $count += strlen($html);
                                if ($count > LIMITE_CHAR){
                                    $html->append(" [...]");
                                    echo $html;
                                    break;
                                } else {
                                    echo $html;
                                }
                            }
                            ?>    
                        </p></div></div></div>		</div><!-- /.content -->

        <footer class="node-footer">
            <ul class="links inline">
                <li class="node-readmore first">
                    <a rel="tag" href="<?php echo site_url('site/post/detalhes/' .$item->get_id_post()); ?>">Detalhes<span class="element-invisible"> about Nulla nec ligula risus</span>
                    </a>
                </li>
                <li class="comment-add last">
                    <a href="<?php echo site_url('site/post/detalhes/' .$item->get_id_post() .'/#new_comment'); ?>">Comentar</a></li>
            </ul>			</footer>
    </div>
</article>